﻿using JeanFish.Blog;
using JeanFish.Blog.Storage;
using Microsoft.WindowsAzure.ServiceRuntime;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Configuration;
using System.Web.Security;
using System.Web.SessionState;

namespace JeanFish.Demo.Web
{
    public class Global : System.Web.HttpApplication
    {
        static void Initialize()
        {
            //Microsoft.WindowsAzure.CloudStorageAccount.SetConfigurationSettingPublisher((configName, configSetter) =>
            //{
            //    configSetter(RoleEnvironment.GetConfigurationSettingValue(configName));
            //});
            //BlogService.SetBlogProvider(BlogProviderHelper.GetDefaultDataProvider("jeanFish.blog/data"), BlogProviderHelper.GetDefaultMediaProvider("jeanFish.blog/media"));
            //BlogService.Current.LoadBlogAsync();
        }

        protected void Application_Start(object sender, EventArgs e)
        {
            Initialize();
        }

        protected void Session_Start(object sender, EventArgs e)
        {

        }

        protected void Application_BeginRequest(object sender, EventArgs e)
        {

        }

        protected void Application_AuthenticateRequest(object sender, EventArgs e)
        {

        }

        protected void Application_Error(object sender, EventArgs e)
        {

        }

        protected void Session_End(object sender, EventArgs e)
        {

        }

        protected void Application_End(object sender, EventArgs e)
        {

        }
    }
}